package io.renren.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.dao.SysMessageAdministrationDao;
import io.renren.entity.SysMessageAdministrationEntity;
import io.renren.service.SysMessageAdministrationService;
import io.renren.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("sysMessageAdministrationService")
public class SysMessageAdministrationServiceImpl extends ServiceImpl<SysMessageAdministrationDao, SysMessageAdministrationEntity> implements SysMessageAdministrationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SysMessageAdministrationEntity> page = this.page(
                new Query<SysMessageAdministrationEntity>().getPage(params),
                new QueryWrapper<SysMessageAdministrationEntity>()
                .eq("type",2)
        );

        return new PageUtils(page);
    }

}
